from tkinter import Tk, Button,Label
from tkinter.constants import RIGHT, LEFT, X, Y, BOTH
def msgbox(msg,title,button):
    win = Tk()
    win.title(title)
    win.geometry('500x100')
    Label(win,text=msg, anchor='n').pack()
    bt = Button(win,text=button)
    bt.pack(anchor='s',expand=True)
    win.mainloop()
